//**********************************************************************************
//GMCProj22.java
//
//Name: Gabriel Martins	de	Castro
//Class:	COMSC	110L.51
//Date: 09/10/2014
//Instructor: Dr.	Chunyan Bai
//
//Purpose: Second project, first program, shows volume and surface area with the given radius
//***********************************************************************************

import java.util.Scanner;
//Class
public class GMCProj22
{
	public static void main(String[]	args)//main	method
	{
      System.out.print("Enter an integer consisting of five digits: ");
      Scanner input = new Scanner(System.in);
      int number = input.nextInt();
      
      int tenThousands;
      tenThousands = number/10000;
      int remainingNumber;
      remainingNumber = number%10000;
      int thousands;
      thousands = remainingNumber/1000;
      remainingNumber = remainingNumber%1000;
      int hundreds;
      hundreds = remainingNumber/100;
      remainingNumber = remainingNumber%100;
      int tens;
      tens = remainingNumber/10;
      remainingNumber = remainingNumber%10;
      int ones;
      ones = remainingNumber;
      
      System.out.print("Ten Thousands Place : " + tenThousands + "\nThousands Place : " + thousands
                           + "\nHundreds Place : " + hundreds + "\nTens Place: " + tens + "\nOnes Place : " + ones);
   }
}